package fr.emn.nuitinfo.model;

import java.io.Serializable;

import com.googlecode.objectify.ObjectifyService;
import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Id;

import fr.emn.nuitinfo.model.interfaces.IDuree;

@Entity
public class Duree implements IDuree, Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = 5768248536976974087L;
    @Id
    private long              id;
    private int               jours;
    private int               heures;
    private int               minutes;

    public Duree() {
	ObjectifyService.register(getClass());
    }

    public Duree(int jours, int heures, int minutes) {
	super();
	this.jours = jours;
	this.heures = heures;
	this.minutes = minutes;
    }

    public long getId() {
	return id;
    }

    @Override
    public int getJours() {
	return this.jours;
    }

    @Override
    public void setJours(int jours) {
	this.jours = jours;
    }

    @Override
    public int getHeures() {
	return this.heures;
    }

    @Override
    public void setHeures(int heures) {
	this.heures = heures;
    }

    @Override
    public int getMinutes() {
	return this.minutes;
    }

    @Override
    public void setMinutes(int minutes) {
	this.minutes = minutes;
    }

}
